var e = getApp();

Page({
    data: {
        conference: ""
    },
    onLoad: function(e) {},
    onReady: function() {},
    onShow: function() {
        this.setData({
            conference: ""
        }), this.getConference();
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        return {
            path: "packageA/member/conferenceList/conferenceList"
        };
    },
    onShareTimeline: function() {
        return {
            path: "packageA/member/conferenceList/conferenceList"
        };
    },
    getConference: function() {
        var n = this, t = e.getNetAddresss("plugin.conference.api.conference-activity.get-activity");
        e._getNetWork({
            url: t,
            success: function(e) {
                var t = e.data;
                1 == t.result ? n.setData({
                    conference: t.data
                }) : wx.showToast({
                    icon: "none",
                    title: t.msg,
                    duration: 1500
                });
            },
            fail: function(e) {
                console.log(e);
            }
        });
    },
    goMeetingIndex: function() {
        wx.navigateTo({
            url: "/packageB/conference/MeetingIndex/MeetingIndex"
        });
    },
    goactivity: function(e) {
        var n = e.currentTarget.dataset.id;
        wx.navigateTo({
            url: "/packageB/conference/activity/activity?id=" + n
        });
    },
    onActivityInfo: function(e) {
        var n = e.currentTarget.dataset.id;
        wx.navigateTo({
            url: "/packageB/conference/myActivityInfo/myActivityInfo?id=" + n
        });
    }
});